//路径拼接
const path = require('path');
let pathstr = path.join(__dirname,'/test.txt')
console.log(pathstr);
const fs = require('fs');
fs.readFile(pathstr,'utf8',function(err,data){
    if(err){
        console.log(err.message);
    }else{
        console.log(data);
    }
})


